<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        if (!isset( $_SERVER[ 'PHP_AUTH_USER' ])) {
        	$this->_redirect('/user/login');
        	exit();
        } 	
    }

    public function indexAction()
    {
    }
    
    public function loginAction() {
    	$request = $this->getRequest();
		$this->view->assign('title','iView Login');
		$this->view->assign('username','Username');
		$this->view->assign('password','Password');
		$this->view->assign('login','Login');
		$this->view->assign('action', $request->getBaseURL()."login"); 
    	
    }
}

